package org.cmg.study.mybatis.entity;

import java.util.List;

/**
 * @author CMG
 * @version 1.0
 * @cLassName User
 * @description
 * @date 2021/9/8 10:02
 **/
public class UserInfo {
    private int id;
    private String name;
    private String pwd;
    private List<Order> orderList;

    public UserInfo() {
    }

    public UserInfo(String name, String pwd, List<Order> orderList) {
        this.name = name;
        this.pwd = pwd;
        this.orderList = orderList;
    }

    public UserInfo(int id, String name, String pwd, List<Order> orderList) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.orderList = orderList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public List<Order> getOrderList() {
        return orderList;
    }

    public void setOrderList(List<Order> orderList) {
        this.orderList = orderList;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", orderList=" + orderList +
                '}';
    }
}
